package com.ai.manager.edu.cms.info.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ai.dao.edu.cms.info.InfoPushApplicationMapper;
import com.ai.manager.edu.cms.info.InfoPushApplicationManager;
import com.ai.model.edu.cms.info.dto.InfoPushApplicationDTO;
import com.ai.model.edu.cms.info.vo.InfoPushApplicationVO;

@Component("infoPushApplicationManager")
public class InfoPushApplicationManagerImpl implements InfoPushApplicationManager {
    @Resource
    private InfoPushApplicationMapper infoPushApplicationMapper;


	/**
     * 保存推送资讯申请记录
     */
    public Long insertInfoPushApplication(InfoPushApplicationDTO record) {
    	return infoPushApplicationMapper.insertInfoPushApplication(record);
    }
	
	/**
     * 更新推送资讯申请记录
     */
    public Long updateInfoPushApplication(InfoPushApplicationDTO dto) {
    	return infoPushApplicationMapper.updateInfoPushApplication(dto);
    }
    
    /**
     * 根据条件查询推送资讯申请记录
     */
    public List<InfoPushApplicationVO> findInfoPushApplicationByDto(InfoPushApplicationDTO dto) {
    	return infoPushApplicationMapper.findInfoPushApplicationByDto(dto);
    }
    
    /**
     * 计算满足条件查询推送资讯申请记录数
     */
    public Long countInfoPushApplicationByDto(InfoPushApplicationDTO dto) {
    	return infoPushApplicationMapper.countInfoPushApplicationByDto(dto);
    }

    /**
     * 根据主键查询记录
     */
    public InfoPushApplicationVO selectInfoPushApplicationById(Long id) {
    	return infoPushApplicationMapper.selectInfoPushApplicationById(id);
    }

	@Override
	public void updateInfoPushStatus(InfoPushApplicationDTO info) {
		infoPushApplicationMapper.updateInfoPushStatus(info);
		
	}


}